package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.BankAccountUpsertReqDTO;
import com.jzo2o.customer.service.IBankAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 机构端银行账户接口设计
 * @author 45505
 */
@RestController("AgencyBankAccountController")
@RequestMapping("/agency/bank-account")
@Api(tags = "机构端-银行账户接口设计")
public class BankAccountController {

    @Resource
    private IBankAccountService bankAccountService;
    @PostMapping
    @ApiOperation("新增或更新银行账户接口")
    public void addOrUpdate(@RequestBody BankAccountUpsertReqDTO bankAccountUpsertReqDTO){
        bankAccountService.addOrUpdate(bankAccountUpsertReqDTO);
    }
}
